package cn.linstudy.common.web.interceptor;

import cn.linstudy.common.constants.CommonConstants;
import feign.RequestInterceptor;
import feign.RequestTemplate;

/**
    * @Description: 对于我们的RestTemplate做的一个额外处理
    * @author XiaoLin
    */
public class FeignRequestInterceptor implements RequestInterceptor {
    @Override
    public void apply(RequestTemplate template) {
        template.header(CommonConstants.FEIGN_REQUEST_KEY,CommonConstants.FEIGN_REQUEST_TRUE);
    }
}
